package com.lots.mapper;

import com.lots.domain.entity.DishDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishDetailMapper {
    @Select("select * from dish_detail where dish_id = #{id}")
    DishDetail getById(Long id);

    void upload(DishDetail dishDetail);
    @Select("select dish_id from dish_detail where user_id = #{userId}")
    List<Long> queryWorks(Long userId);
}
